package com.defangit.production.bll;

import com.defangit.production.domain.Operator;
import laogen.util.entities.Finder;

import java.util.Collection;

public interface OperatorBll extends CommonBusinessLogic<Operator>{
    Operator addOperator(Operator operator);
    Operator updateOperator(Operator operator);
    boolean deleteOperator(Operator operator);

    OperatorFinder findAll();

    Operator login(String name,String pass);

    interface OperatorFinder extends Finder<Operator> {
        OperatorFinder name(String name);
        OperatorFinder tag(Collection<Integer> tagId);
        OperatorFinder nameLike(String name);
        OperatorFinder store(Integer storeId);
        OperatorFinder workShopId(Integer workShopId);
        OperatorFinder loadStore();
        OperatorFinder loadWorkShops();
        OperatorFinder id(Integer id);
    }
}
